<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>出场缴费页</title>
    <a href="${pageContext.request.contextPath}/self.html" style="color: #8032f5"><span>用户名:${UserName}</span></a>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<p>
    请支付停车费:
    <img src="/upload/paymoney.png"  width="200" height="200"></p>

<p>
    <a href="${pageContext.request.contextPath}/menu.html">支付成功</a></p>
<table class="table table-hover col-sm-10">
    <h2>停车记录</h2>
    <thead>
    <tr>
        <th>车位号(LotID)</th>
        <th>车牌号(CarID)</th>
        <th>离开时间(LeaveTime)</th>
        <th>到达时间(ArriveTime)</th>
        <th>需付金额(Pay)</th>
    </tr>
    </thead>

    <c:forEach items="${parking}" var="parking">
        <tr>
            <td>${parking.lotID}</td>
            <td>${parking.carID}</td>
            <td>${parking.leaveTime}</td>
            <td>${parking.arriveTime}</td>
            <td>${parking.pay}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
